package com.xiaoxin.experience.api.tree.model;

import com.xiaoxin.experience.api.http.model.RequestInfo;
import com.xiaoxin.experience.service.tree.common.JsTree;
import lombok.Getter;
import lombok.Setter;

import java.io.Serializable;

/**
 * @author xiaoxin
 */
@Setter
@Getter
public class InstanceInfo implements Serializable
{
    private static final long serialVersionUID = -8997771185004958473L;

    private Integer id;

    private String name;

    private Integer directoryId;

    private RequestInfo requestInfo;

    public JsTree toTreeNode()
    {
        return JsTree.asLeaf(String.valueOf(id),name,this);
    }
}
